package cn.jofei.common.enums;

import java.util.concurrent.TimeUnit;

/**
 * @author bao
 * @version ngbao v
 * @description
 * @date 2022/5/26 12:31
 */
public enum TimeEnum {
    HOURS(TimeUnit.HOURS,"小时"),
    MINUTES(TimeUnit.MINUTES,"分"),
    SECONDS(TimeUnit.SECONDS,"秒"),
    MILLISECONDS(TimeUnit.MILLISECONDS,"毫秒"),
    ;
    private TimeUnit timeUnit;
    private String name;

    TimeEnum(TimeUnit timeUnit, String name) {
        this.timeUnit = timeUnit;
        this.name = name;
    }

    public TimeUnit timeUnit() {
        return timeUnit;
    }

    public String getName() {
        return name;
    }
}
